<template>
	<view class="bill-content">
		<view class="bill-header">
			<image src="../../static/imgs/payment/success-icon.png"></image>
			<view class="bill-header-money">支付成功</view>
		</view>
		<view class="bill-line">
			<view class="bill-line_param">订单号</view>
			<view class="bill-line_value">{{orderid}}</view>
		</view>
		<!-- <view class="bill-tips">
			温馨提示：锁住的视频需要付费，付费一个视频就可以在一年内任意观看和学习
			<text>小学一年级</text>全部体能视频。
		</view> -->
		<view class="button" @click="payClick">确定</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {},
				orderid:null,
			}
		},
		onLoad(option) {
			if (option.orderid) {
				this.orderid = option.orderid
			}
		},
		methods: {
			payClick(){
				uni.navigateBack({
					delta:4
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.bill-content {
		.bill-header {
			width: 100%;
			background-color: #ffffff;
			padding: 30rpx 0 34rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			margin-bottom: 2rpx;

			image{
				width: 96rpx;
				height: 96rpx;
			}

			&-money {
				font-size: 40rpx;
				font-weight: bold;
				color: $uni-text-color-black;
				line-height: 56rpx;
				margin-top: 20rpx;
			}
		}

		.bill-line {
			background-color: #ffffff;
			width: calc(100% - 60rpx);
			padding: 0 30rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 100rpx;
			line-height: 100rpx;
			margin-bottom: 2rpx;

			&_param {
				font-size: 28rpx;
				color: $uni-text-color-black;
			}

			&_value {
				font-size: 28rpx;
				color: $uni-text-color-opblack;
			}
		}

		.bill-tips {
			font-size: 28rpx;
			color: $uni-text-color-opblack;
			line-height: 52rpx;
			background-color: #fff;
			width: calc(100% - 60rpx);
			padding: 22rpx 30rpx;

			text {
				color: $uni-text-color-black;
			}
		}	
		.button{
			width: 690rpx;
			height: 88rpx;
			line-height: 88rpx;
			text-align: center;
			border-radius: 10rpx;
			margin: 50rpx auto 0;
			color: #ffffff;
			font-size: 32rpx;
			font-weight: bold;
			background:#FF6E00;
		}
	}
</style>